package com.core.website.mapper;

import com.core.website.entity.Column;
import com.core.website.entity.Content;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ColumnMapper {
    int add(Column column);
    int edit(Column column);
    int delete(@Param("list") List<String> ids);
    List<Column> queryAll(Column column);
    Column queryById(String id);
    List<Column> queryByOrgId(String organizationId);
    /**
     * 查看栏目列表中的子栏目和本身
     * @param ids
     * @return
     */
    List<Column> selectChildColumnList(List<String> ids);
}
